home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
utility
/
rename_.zip
/
!RENAME.BAT
next >
Wrap
DOS Batch File
|
1994-03-01
|
513b
|
22 lines
@echo off
rename! %1 %2
rem Just in case you need to use a batch file!
if errorlevel 5 goto same
if errorlevel 4 goto unable
if errorlevel 3 goto override
if errorlevel 2 goto nosource
echo Success! or not found!
goto end
:same
echo Source and target specified was the same.
goto end
:unable
echo Unable to rename file. Most likely because renaming to a directory.
goto end
:override
echo You didn't want to overwrite the target file.
goto end
:nosource
echo Source file was not found.
:end